//
//  App.h
//  lianganyuchu
//
//  Created by iMac on 17/3/15.
//  Copyright © 2017年 杭州桑缇电子商务有限公司. All rights reserved.
//

#import <Foundation/Foundation.h>

@class UserTable;
@interface App : NSObject

//当前用户信息
@property(strong, nonatomic) UserTable *user;
@property(strong, nonatomic) ShopTable *shop;

@property BOOL isUpdateDeviceToken;
@property(strong, nonatomic) NSMutableDictionary *global;

+ (instancetype)shared;

- (BOOL)isUserLogin;

- (void)restore;

- (void)logout;

- (void)save;

-(void)saveShopData;
-(void)readShopData;


@property(nonatomic,strong)NSString *deviceToken;
-(void)saveDeviceToken;
-(void)readDeviceToken;

@property(nonatomic,strong) NSDictionary *dictColor;
-(void)saveOrderColor;
-(void)readOrderColor;


@end
